<%= form_for(@hero) do |f| %>
  <% if @hero.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@hero.errors.count, "error") %> prohibited this hero from being saved:</h2>

      <ul>
      <% @hero.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :user_id %><br />
    <%= f.text_field :user_id %>
  </div>
  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :history %><br />
    <%= f.text_area :history %>
  </div>
  <div class="field">
    <%= f.label :strength %><br />
    <%= f.text_field :strength %>
  </div>
  <div class="field">
    <%= f.label :intelligence %><br />
    <%= f.text_field :intelligence %>
  </div>
  <div class="field">
    <%= f.label :constitution %><br />
    <%= f.text_field :constitution %>
  </div>
  <div class="field">
    <%= f.label :life %><br />
    <%= f.text_field :life %>
  </div>
  <div class="field">
    <%= f.label :sex %><br />
    <%= f.check_box :sex %>
  </div>
  <div class="field">
    <%= f.label :map_id %><br />
    <%= f.text_field :map_id %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
